![]() | ![]() | ![]() | ![]() | ![]() |
A DB2 VARCHAR(nn) column is incorrectly created when all the following conditions are true:
You might also see this issue when the DB2 client and server versions are different. For example, you are using a DB2 version 10 client and a DB2 version 11 server.
For DB2 version 10, you would expect TRANSCODE=NO to result in a DB2 column that is created as "VARCHAR(nn) FOR BIT DATA."
For DB2 version 11, you would expect TRANSCODE=NO to result in a DB2 column that is created as "VARBINARY(nn)."
The following syntax can demonstrate the issue:
The SASTRACE output shows that the CREATE TABLE clause is generated as one of the following, and the last one is incorrect:
The only workaround is to use the DBTYPE= data set option, as shown here:
Click the Hot Fix tab in this note to access the hot fix for this issue.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS/ACCESS Interface to DB2 | z/OS 64-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |
z/OS | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft® Windows® for x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 8 Enterprise 32-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 8 Enterprise x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 8 Pro 32-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 8 Pro x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 8.1 Pro x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows 10 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2008 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2008 R2 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2008 for x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2012 Datacenter | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2012 R2 Std | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2012 Std | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2016 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Microsoft Windows Server 2019 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Windows 7 Enterprise 32 bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Windows 7 Enterprise x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Windows 7 Home Premium 32 bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Windows 7 Home Premium x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Windows 7 Professional 32 bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Windows 7 Professional x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Windows 7 Ultimate 32 bit | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Windows 7 Ultimate x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
64-bit Enabled AIX | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
64-bit Enabled Solaris | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
HP-UX IPF | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Linux for x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 | ||
Solaris for x64 | 9.43 | 9.44 | 9.4 TS1M6 | 9.4 TS1M7 |